package vaani.internal.actionmanagers;

import java.net.URL;
import java.util.List;
import vaani.internal.ProcessInstance;
import vaani.internal.ProcessInstanceBash;
//import vaani.internal.beagle.Result;
//import vaani.shabd.ApplicationMiner;

/**
 *
 * @author sourcemorph
 */
public class FileManager extends GenericManagerBashTypeLevelTwo {

    public FileManager(List<String> arguments) {
        super(arguments);
    }
    
    @Override
    protected ProcessInstance createProcessInstance(URL url) {
        //String temp = ApplicationMiner.MatchApplication(res.getFileType());
        String proc = "xdg-open " + url;
        String desc = "Open the file " + url.getFile();
        return new ProcessInstanceBash(proc, desc);
    }
}
